package a.f.h.a;

import a.c.*;
import a.c.e;
import a.d.s;
import a.d.u;
import a.f.h.b.j;

public class g
  extends a.f.h.d.o
{
  public static int F;
  
  public void a()
  {
    int m = d.n;
    int k = d.m;
    a.c.k localk = this.v.c("y.layout.orthogonal.cluster.NodeSplitter.INSETS_KEY");
    Object localObject3;
    Object localObject4;
    if (localk != null)
    {
      localObject1 = this.v.w();
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = ((m)localObject1).a();
        if (k != 0) {
          break label293;
        }
        if ((m != 0) || (!this.u.d((a.c.d)localObject2)))
        {
          localObject3 = u.a(localk.get(localObject2));
          localObject4 = this.u.i((a.c.d)localObject2);
          if (m != 0) {
            continue;
          }
          if (localObject3 != null)
          {
            double d1 = 0.0D;
            double d2 = 0.0D;
            if (m == 0) {
              if (((a.f.h.b.k)localObject4).c(a.f.h.b.k.a)) {
                d1 = ((u)localObject3).c;
              }
            }
            if (m == 0) {
              if (((a.f.h.b.k)localObject4).c(a.f.h.b.k.b)) {
                d1 = ((u)localObject3).b;
              }
            }
            if (m == 0) {
              if (((a.f.h.b.k)localObject4).c(a.f.h.b.k.c)) {
                d2 = ((u)localObject3).e;
              }
            }
            if (((a.f.h.b.k)localObject4).c(a.f.h.b.k.d)) {
              d2 = ((u)localObject3).d;
            }
            d2 = Math.ceil(d2 / this.A);
            d1 = Math.ceil(d1 / this.A);
            this.u.e((a.c.d)localObject2, (int)d2);
            this.u.e(this.u.a((a.c.d)localObject2), (int)d2);
            this.u.f((a.c.d)localObject2, (int)d1);
            this.u.f(this.u.a((a.c.d)localObject2), (int)d1);
          }
        }
        ((m)localObject1).f();
      } while (k == 0);
    }
    label293:
    Object localObject1 = this.v.c(i.e);
    Object localObject2 = this.v.c("y.layout.orthogonal.cluster.NodeSplitter.BORDER_INFO_KEY");
    if ((m != 0) || ((localObject1 != null) && (localObject2 != null)))
    {
      localObject3 = new bb();
      localObject4 = this.v.B();
      Object localObject5 = this.v.w();
      Object localObject6;
      Object localObject7;
      Object localObject8;
      label489:
      do
      {
        if (!((m)localObject5).e()) {
          break;
        }
        localObject6 = ((m)localObject5).a();
        localObject7 = (e)((a.c.k)localObject2).get(localObject6);
        if (k != 0) {
          break label703;
        }
        if (m == 0)
        {
          if ((!this.u.d((a.c.d)localObject6)) && ((m != 0) || (localObject7 != null)))
          {
            localObject8 = (ab)((x)localObject4).get(localObject7);
            if (m == 0) {
              if (localObject8 != null)
              {
                ((ab)localObject8).add(localObject6);
                if (m != 0) {
                  continue;
                }
                if (k == 0) {
                  break label489;
                }
              }
            }
            localObject8 = new ab((a.c.d)localObject6);
            ((x)localObject4).a(localObject7, localObject8);
            ((bb)localObject3).add(localObject7);
          }
          ((m)localObject5).f();
        }
      } while (k == 0);
      if (m == 0)
      {
        localObject5 = ((bb)localObject3).l();
        do
        {
          if (!((w)localObject5).e()) {
            break;
          }
          localObject6 = ((w)localObject5).d();
          localObject7 = (ab)((x)localObject4).get(localObject6);
          localObject8 = (s)((a.c.k)localObject1).get(localObject6);
          if (k != 0) {
            return;
          }
          if ((m != 0) || (localObject8 != null))
          {
            int i = (int)Math.ceil(((s)localObject8).b() / this.A);
            int j = (int)Math.ceil(((s)localObject8).c() / this.A);
            a_ locala_ = a((ab)localObject7);
            this.u.a(new j(locala_.a, locala_.c, i, 1, a.f.h.b.k.b));
            this.u.a(new j(locala_.a, locala_.c, j, 1, a.f.h.b.k.c));
          }
          ((w)localObject5).f();
        } while (k == 0);
        if (m == 0) {
          this.v.a((x)localObject4);
        }
      }
    }
    else
    {
      label703:
      super.a();
    }
  }
  
  private a_ a(ab paramab)
  {
    int j = d.n;
    int i = d.m;
    a_ locala_ = new a_();
    m localm1 = paramab.l();
    label173:
    label175:
    label190:
    label236:
    do
    {
      if (!localm1.e()) {
        break;
      }
      a.c.d locald1 = localm1.a();
      e locale = locald1.e();
      String str = "";
      m localm2 = locale.n();
      do
      {
        do
        {
          if (!localm2.e()) {
            break;
          }
          a.c.d locald2 = localm2.a();
          a.f.h.b.k localk = this.u.i(locald2);
          str = str + localk;
          localm2.f();
          if (j != 0) {
            break label175;
          }
          if (i != 0) {
            break label173;
          }
        } while (i == 0);
      } while (j != 0);
      if ((j != 0) || (!str.equals(">_")))
      {
        if (j != 0) {
          break label190;
        }
        if (!str.equals("_>")) {}
      }
      else
      {
        locala_.a = locale;
        if (j != 0) {
          continue;
        }
        if (i == 0) {
          break label311;
        }
      }
      if (j == 0)
      {
        if (!str.equals("<_"))
        {
          if (j != 0) {
            break label236;
          }
          if (!str.equals("_<")) {}
        }
        else
        {
          locala_.b = locale;
        }
      }
      else
      {
        if (j != 0) {
          continue;
        }
        if (i == 0) {
          break label311;
        }
      }
      if (j == 0)
      {
        if (!str.equals(">^"))
        {
          if (j != 0) {
            break label282;
          }
          if (!str.equals("^>")) {}
        }
        else
        {
          locala_.d = locale;
        }
      }
      else
      {
        if (j != 0) {
          continue;
        }
        if (i == 0) {
          break label311;
        }
      }
      if ((j != 0) || (!str.equals("<^")))
      {
        if (j != 0) {
          continue;
        }
        if (!str.equals("^<")) {}
      }
      else
      {
        locala_.c = locale;
      }
      localm1.f();
    } while (i == 0);
    label282:
    label311:
    return locala_;
  }
  
  static class a_
  {
    e a;
    e b;
    e c;
    e d;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.a.g

 * JD-Core Version:    0.7.0.1

 */